FROM mysql:5.7.44

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY ./oms_nacos.sql /docker-entrypoint-initdb.d

COPY ./oms_upms.sql /docker-entrypoint-initdb.d

COPY ./oms_codegen.sql /docker-entrypoint-initdb.d

COPY ./oms_quartz.sql /docker-entrypoint-initdb.d

COPY ./oms_wsms.sql /docker-entrypoint-initdb.d

COPY ./oms_coms.sql /docker-entrypoint-initdb.d

EXPOSE 3306